package com.syty.demo.result;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 对数据返回结果进行封装的返回结果类
 */
@ApiModel(description = "前后端数据返回类型")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ResultSet {
    @ApiModelProperty("返回状态码")
    private ResultCodes resultCode;
    @ApiModelProperty("是否成功")
    private Boolean success;
    @ApiModelProperty("提示信息")
    private String message;
    @ApiModelProperty("返回的数据")
    private Object data;
}
